{% extends "base.html" %}

{% load i18n %}

{% block content %}
<script type="text/javascript">

$(document).ready(function() 
    { 
        $("#rfclist").tablesorter({
        	widgets: ['jfilterselect','zebra']
        })
    } 
); 

</script>
<table id="rfclist" class="tablesorter list">
	<thead>
		<tr>
			<th class="summary">{% trans "Summary" %}</th>
			<th class="owner" jFilterSelect="1">{% trans "Owner" %}</th>
			<th class="status" jFilterSelect="1">{% trans "Status" %}</th>
			<th class="createDate">{% trans "Created" %}</th>
			<th class="updateDate">{% trans "Updated" %}</th>
		</tr>
	</thead>
	<tbody>
	{% for rfc in rfcs %}
		<tr class="rfc">
			<td class="summary">
				{% if rfc.lockUser and rfc.lockUser != request.user %}
					{{ rfc.summary }} <span class="locked">{% trans "Locked by" %} {{ rfc.lockUser }}</span>
                                {% else %}
				<a href="{% url posecco:rfc rfc.pk %}" />
					{{ rfc.summary }}
				</a>
				{% endif %}
			</td>
			<td class="owner">
				{{ rfc.owner }}
			</td>
			<td class="status">
				{{ rfc.get_status_display }}
			</td>
			<td class="createDate">
				{{ rfc.createDate }}
			</td>
			<td class="updateDate">
				{{ rfc.updateDate }}
			</td>
		</tr>
	{% endfor %}
	</tbody>
<table>
{% endblock %}
